<!DOCTYPE html>
<html lang="en">
	<include file="Public:header" />
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta charset="utf-8">
	<link rel="stylesheet" href="__ROOT__/Statics/Matrixadmin/css/bootstrap.min.css" />
	<link rel="stylesheet" href="__ROOT__/Statics/Matrixadmin/css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" href="__ROOT__/Statics/Matrixadmin/css/matrix-style.css" />
	<link rel="stylesheet" href="__ROOT__/Statics/Matrixadmin/css/matrix-media.css" />
	<link href="__ROOT__/Statics/Matrixadmin/font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>

	<body>
		<div id="header">
			<h1><a href="#">{:C('SITENAME')}--管理中心</a></h1>
		</div>
		<include file="Public:top" />
		<include file="Public:nav" />
		<style>
			a {
				color: #3399ff
			}
			;
		</style>
		<div id="content">
			<div id="content-header">
				<div id="breadcrumb"> <a href="{:U('index/index')}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
					<a href="#" class="tip-bottom"> 本地生活</a> 
					<a href="{:U('Life/indextype')}" class="tip-bottom">分类管理</a>
					<a href="#" class="tip-bottom">添加子分类</a>
				</div>
				<h1>添加子分类</h1>
			</div>
			<div class="container-fluid">
				<hr>
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
								<h5>添加</h5>
							</div>
							<div class="widget-content nopadding">
								<form class="form-horizontal" method="post" action="{:U('Life/addSubtype')}" name="form1" id="basic_validate">
									<div id="from-wizard-1" class="step">
										<div class="control-group">
											<label class="control-label">子分类名称：</label>
											<div class="controls">
												<input id="cate_name" type="text" name="cate_name" class="span6" />
												<span class="help-block">输入子分类名称</span>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">排序：</label>
											<div class="controls">
												<input id="orderby" type="text" name="orderby" class="span6" />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label"></label>
											<div class="controls">
												 <input type='hidden' id = "pid"  name="pid"  value = "{$list.cate_id}" />
												<button type="submit" class="btn btn-success">保存信息</button>
											</div>
										</div>
										<div id="submitted"></div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>
		<include file="Public/footer" />

		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.min.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.ui.custom.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/bootstrap.min.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.validate.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.wizard.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/matrix.js"></script>
		<script src="__ROOT__/Statics/Admin/js/addlife.js"></script>
		<script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/addAd.js"></script>
		<script type="text/javascript">
			function goPage(newURL) {
					if (newURL != "") {
						if (newURL == "-") {
							resetMenu();
						}
						else {
							document.location.href = newURL;
						}
					}
				}

			function resetMenu() {
				document.gomenu.selector.selectedIndex = 2;
			}
		</script>
	</body>

</html>